Skip to main content

All Questions

0votes
1answer
53views

Adding a language rule and displaying posts with a custom taxonomy term on its archive page

The WordPress website I'm working on is available in two languages using Polylang, en-US and en-PH. I use CPT UI and have a custom taxonomy "subtopic" that is not multilingual. Under "...
Sum's user avatar
  • 11
0votes
0answers
505views

custom post type and a "sticky" position taxonomy

I have a custom post type with a custom taxonomy that denotes various types of places the custom post might appear in the site. One that I'm having some trouble with is a "sticky" term for ...
jshwlkr's user avatar
0votes
1answer
36views

Targeting custom post type via functions.php doesn't work

I have a custom post type, books, set up and a custom taxonomy, book_cat, to act as categories for these posts. I've added the below code to functions.php to sort posts on my custom taxonomy archive ...
friendly_llama's user avatar
0votes
0answers
188views

How do I stop the same post showing multiple times in a archive?

For some reason the archives for my custom taxonomy is showing each post 3 times and I can't seem to figure out why. Here is the page: https://portfolioadviserlink.com/topics/esg/ $...
Ibrarr Khan's user avatar
0votes
1answer
2kviews

Group posts in a category based on tags in custom taxonomy

I had my built-in posts set up with categories and tags. I created a template that would display posts of the category that matched the page slug. then it would group them by the Tags. for example, ...
Steve's user avatar
0votes
2answers
1kviews

Filter Custom Taxonomy Posts

I have a custom taxonomy page, it also has a slider up top. The problem is the slider displays random posts from all taxonomies rather than the current taxonomy. Is there a way to filter the images in ...
Joe Landry's user avatar
0votes
2answers
274views

one post per term taxonomy

I need some help, again. I use this query: $tax = get_the_terms($id, 'coupon_category'); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ...
joloshop's user avatar
0votes
3answers
144views

query_posts problem - need help

I have a taxonomy called coupon_category. In a query_post I am trying to call all posts from related custom taxonomy with the same coupon_category. If I use: <?php // show ...
joloshop's user avatar
1vote
3answers
4kviews

How to display Related Posts based on number of taxonomy terms matched

I have a custom post-type 'News' which has multiple custom taxonomies 'news-category', 'news-tags'. Each post contains between 4-8 'news-tags' and 1 'news-category'. For my current post, I'd like to ...
Edison's user avatar
2votes
0answers
53views

List custom post type by custom tax term as page title

I have a page called "Developments" and I want to list all the Project posts by the custom tax Project Type using the page title as the term. This doesn't work: <?php $title_slug = ...
phi's user avatar
  • 21
1vote
1answer
328views

How to query custom post types posts filtered by multiple custom taxonomies through a form selection

I'm trying to create a sort of selection menu, in order to select custom posts by different custom taxonomies. I did the selection part, but I can't get to output my post and I can't understand where ...
Lisa's user avatar
0votes
1answer
2kviews

How to get only one category of custom post type?

I get all post successfully of CPT which are Order by meta_key value Date. Code is below $today = date("Y/m/j"); query_posts(array( 'post_type' => 'event', 'posts_per_page' => 10, 'meta_key' =&...
FRQ6692's user avatar
0votes
1answer
40views

Getting Custom Posts with Custom Taxonomy

I am trying to get the custom posts "contact" with the custom taxonomy "abteilung" for this post type. Everything i am trying is not working. Now i am stuck with the following. The problem is, that ...
michaelsitte's user avatar
2votes
1answer
3kviews

How to show only one post for each categories of taxonomy of custom post that contains a specific custom field

I have a custom post called 'account' and custom taxonomy called 'bank'; What I'm trying to do is to show with wp_query post a list of post that should have a specific custom fields named 'tax'. ...
Giulio's user avatar
1vote
1answer
29views

How to edit this code to get the categories in achieve page?

I was building part of my category.php which will get posts from custom post type "product" and sure which will be included in the category what happen was it get ALL the posts from the custom post ...
Mohamed Yasin's user avatar

153050per page
close